package main

import (
	ContainerC "bridge/create_container"
	Imagel "bridge/image_list"
	ImageP "bridge/image_pull"
	"net/http"
)

func main() {
	http.HandleFunc("/image/get", Imagel.Image_list)
	http.HandleFunc("/container/ssh", ContainerC.Create_container)
	http.HandleFunc("/container/vnc", ContainerC.Create_vnc)
	http.HandleFunc("/image/pull", ImageP.Image_pull)
	http.HandleFunc("/image/delete", ImageP.Image_delete)
	err := http.ListenAndServe(":9000", nil)
	if err != nil {
		panic(err)
	}
}
